package com.yxq.mdt.app.base;

import com.alibaba.fastjson.JSON;
import com.yxq.mdt.app.modules.main.bean.NameAndPhoneBean;
import com.yxq.mdt.app.net.FastJsonConverterFactory;

import java.io.Serializable;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.List;

/**
 * @描述 通用接口返回类
 * @作者 yd
 * @创建日期 2019/8/27 0027 15:51
 */
public class RespBase<T> {
    private int code;
    private int is_alert;
    private String msg;
    private T data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public int getIs_alert() {
        return is_alert;
    }

    public void setIs_alert(int is_alert) {
        this.is_alert = is_alert;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "RespBase{" +
                "code=" + code +
                ", is_alert=" + is_alert +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
